// stm32f429i_discovery_usart1.h

#ifndef __STM32F429I_DISCOVERY_USART1_H
#define __STM32F429I_DISCOVERY_USART1_H


#ifdef __cplusplus
 extern "C" {
#endif
                                              
/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx.h"

#include "stdio.h"
#include "stdlib.h"
#include "string.h"

typedef enum 
{
  COM1 = 0,
} Com_TypeDef;
     
  

#define COMn                             2

#define COM1_GPIO_RCC                    RCC_AHB1Periph_GPIOA
#define COM1_RCC                         RCC_APB2Periph_USART1

#define COM1_TX_PIN                      GPIO_Pin_9
#define COM1_TX_GPIO_PORT                GPIOA
#define COM1_TX_GPIO_CLK                 RCC_AHB1Periph_GPIOA  
#define COM1_TX_CLK                      RCC_APB2Periph_USART1
#define COM1_TX_PINSOURCE                GPIO_PinSource9
                 

#define COM1_RX_PIN                      GPIO_Pin_10
#define COM1_RX_GPIO_PORT                GPIOA
#define COM1_RX_GPIO_CLK                 RCC_AHB1Periph_GPIOA  
#define COM1_RX_CLK                      RCC_APB2Periph_USART1
#define COM1_RX_PINSOURCE                GPIO_PinSource10


void STM_EVAL_COMInit(Com_TypeDef Com, uint32_t Baudrate);
int fputc(int ch, FILE *f);
void USART1_IRQHandler(void);

#endif
